//
//  LouMusicPlayer.h
//  WXMusic
//
//  Created by 漫步人生路 on 15/9/7.
//  Copyright (c) 2015年 漫步人生路. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "PlayModel.h"
@class LouMusicPlayer;
@protocol LouMusicDelegate <NSObject>
- (void)audioManagerStreamer:(LouMusicPlayer *)streamer songProgress:(float)songProgress;
@end
@interface LouMusicPlayer : NSObject
//设置代理属性
@property (nonatomic, strong) id<LouMusicDelegate> louPlayerDelegate;
//创建一个AVPlayer播放类
@property (nonatomic, strong) AVPlayer *louPlayer;
//AVPlayerItem(多媒体资源)
@property (nonatomic, strong) AVPlayerItem *louPlayerItem;
//AVAsset(音视频当中单个资源,例如声道)
//@property (nonatomic, strong) AVAsset

//缓冲成功
@property (nonatomic) BOOL readyToPlay;
//正在播放
@property (nonatomic) BOOL isPlaying;

//modelArray
@property (nonatomic, strong) NSMutableArray *modelArray;
//下标
@property (nonatomic, assign) NSInteger index;
//
@property (nonatomic, strong) PlayModel *playModel;
@property (nonatomic, assign) NSInteger playOrder;

+ (LouMusicPlayer *)shareMusicPlayer;

//根据歌曲的url来播放
- (void)playSongWithUrl:(NSString *)url;
//开始播放
- (void)starPlaySong;
//停止播放
- (void)stopPlaySong;
//指定位置播放
- (void)seekToTime:(CGFloat)time;
- (void)reloadSong;
- (void)playNextSong;






@end
